package com.hdoit.ares.logical.acc.service.impl;

import java.util.Date;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.tennetcn.common.dao.base.impl.SuperService;
import com.hdoit.ares.logical.acc.dao.IIncomeDetailDao;
import com.hdoit.ares.logical.acc.model.IncomeDetail;
import com.hdoit.ares.logical.acc.service.IIncomeDetailService;
import com.hdoit.ares.logical.viewmodel.acc.FindIncomeDetail;
import com.hdoit.ares.logical.viewmodel.acc.IncomeDetailSearch;
/**
 * @author      lvsi
 * @email       
 * @createtime  2017年12月19日 11:10:00
 * @comment
 */
@Component
public class IncomeDetailServiceImpl extends SuperService<IncomeDetail> implements IIncomeDetailService{

	private IIncomeDetailDao incomeDetailDao;
	public IIncomeDetailDao getIncomeDetailDao() {
		return incomeDetailDao;
	}
	@Resource
	public void setIncomeDetailDao(IIncomeDetailDao incomeDetailDao) {
		this.incomeDetailDao = incomeDetailDao;
	}
	@Override
	public List<IncomeDetail> queryIncomeDetail(IncomeDetailSearch search, String custId) {
		
		return incomeDetailDao.queryIncomeDetail(search, custId);
	}
	@Override
	public List<IncomeDetail> queryIncomeDetailInfo(String custId) {
		
		return incomeDetailDao.queryIncomeDetailInfo(custId);
	}
	@Override
	public IncomeDetail querySumIncomeMoney(FindIncomeDetail findIncomeDetail,String custId) {
		
		return incomeDetailDao.querySumIncomeMoney(findIncomeDetail,custId);
	}
	@Override
	public IncomeDetail querySumExpendMoney(FindIncomeDetail findIncomeDetail,String custId) {
		
		return incomeDetailDao.querySumExpendMoney(findIncomeDetail,custId);
	}
	@Override
	public Boolean updateHesitatePeriodState(Date lastDate) {
		return incomeDetailDao.updateHesitatePeriodState(lastDate);
	}
	
	@Override
	public IncomeDetail queryIncomeInHesitate(String id) {

		return incomeDetailDao.queryIncomeInHesitate(id);
	}
	@Override
	public List<IncomeDetail> queryIncomeDetail(FindIncomeDetail findIncomeDetail, String custId) {
		
		return incomeDetailDao.queryIncomeDetail(findIncomeDetail, custId);
	}
	@Override
	public IncomeDetail queryIncomeDetail(String id) {
		
		return incomeDetailDao.queryIncomeDetail(id);
	}
	@Override
	public List<IncomeDetail> queryIncomeList(
			FindIncomeDetail findIncomeDetail, String custId, Integer start,Integer length) {
	
		return incomeDetailDao.queryIncomeList(findIncomeDetail, custId, start, length);
	}
	/*@Override
	public IncomeDetail querySumIncome(FindIncomeDetail findIncomeDetail,
			String custId, Integer start, Integer length) {
	
		return incomeDetailDao.querySumIncome(findIncomeDetail, custId, start, length);
	}
	@Override
	public IncomeDetail querySumExpend(FindIncomeDetail findIncomeDetail,
			String custId, Integer start, Integer length) {
		
		return incomeDetailDao.querySumExpend(findIncomeDetail, custId, start, length);
	}
*/
}
